package com.itheima.byteStream;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Arrays;

public class Demo06 {

    public static void main(String[] args) throws IOException {

        FileInputStream fis = new FileInputStream("E:\\29期就业班\\day12_IO流01\\资料\\素材\\不写代码无法安心入眠.avi");
        int len;
        byte[] bytes= new byte[1024];
        while (true) {
            len=fis.read(bytes);
            System.out.println("读取数据的长度:"+len);
            System.out.println(Arrays.toString(bytes));
            if(len==-1){
                break;
            }
        }

    }
}
